#include <stdio.h>
#include <stdlib.h>

static void set_val ( int * x )
{
	*x = 9;
}

static int get_val ( int * x )
{
	return *x;
}

int main ( void )
{
	int x = 0;
	int * var = malloc ( sizeof (int) );
	x = get_val ( var );
	set_val ( var );
	x++;
	free ( var );

	return 1;
}
